<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------

namespace app\video\validate;

use think\Validate;

/**
 * 视频 验证器
 * @package app\admin\validate
 * @author jason wang <120907037@qq.com>
 */
class PlayNoUid extends Validate
{
    protected $rule = [
        'user_id'       =>  'number|gt:0',   //uid 数字/必填/大于0
        'play_id'       =>  'number|require|gt:0',   //refresh_token 必填
        'user_uid'		  =>  'number|require|gt:0',   //uid 数字/必填/大于0
    ];

    protected $message  =   [
        'user_id'    	=> '用户格式错误',
        'play_id'      	=> '视频id错误',
        'content'       => '内容格式错误',
        'user_uid'      => '用户格式错误',
        'page'      	=> 'page格式错误',
    ];

    //验证场景
    protected $scene = [
        					          'get_play_info'    		=>  [//视频详情
                                                        //'user_id',
                                                        'play_id',
                                                      ],
                            
                                  ];
}
